package com.itogis.rest.serivce.Impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import com.itogis.rest.dao.RoleDao;
import com.itogis.rest.serivce.RoleService;

@Component
public class RoleServiceImpl implements RoleService {
	
	@Autowired
	private RoleDao roleDao;
	public boolean addUser(String roleid,String userid){
		return this.roleDao.addUser(userid, roleid);
	}
	
	public boolean deleteUser(String roleid,String userid){
		return this.roleDao.deleteUser(userid, roleid);
	}
	
	public boolean addRight(String roleid,String rightid){
		return this.roleDao.addRight(rightid, roleid);
	}
	
	public boolean deleteRight(String roleid,String rightid){
		return this.roleDao.deleteRight(rightid, roleid);
	}
}
